/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 *
 * @author puspa
 */
public class PanelTambahAnggota extends JPanel {

    private JLabel labelPanel;
    private JLabel labelNamaAnggota;
    private JTextField textNamaAnggota;
    private JLabel labelKodeAnggota;
    private JTextField textKodeAnggota;
    private JButton tombolSimpan;
    private JButton tombolBatal;

    public PanelTambahAnggota() {
        setLayout(null);
        labelPanel = new JLabel("Form Tambah Anggota");
        labelPanel.setBounds(100, 5, 220, 50);
        add(labelPanel);

        labelNamaAnggota = new JLabel("Nama");
        labelNamaAnggota.setBounds(10, 50, 100, 50);
        add(labelNamaAnggota);

        textNamaAnggota = new JTextField();
        textNamaAnggota.setBounds(100, 65, 200, 25);
        add(textNamaAnggota);

        labelKodeAnggota = new JLabel("Kode");
        labelKodeAnggota.setBounds(10, 85, 50, 50);
        add(labelKodeAnggota);

        textKodeAnggota = new JTextField();
        textKodeAnggota.setBounds(100, 100, 100, 25);
        add(textKodeAnggota);

        tombolSimpan = new JButton("Simpan");
        tombolSimpan.setBounds(50, 155, 100, 30);
        add(tombolSimpan);

        tombolBatal = new JButton("Batal");
        tombolBatal.setBounds(200, 155, 130, 30);
        add(tombolBatal);

        tombolSimpan.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                tombolSimpanAction();
            }
        });
    }

    public void tombolSimpanAction() {
        try {
            
        } catch (Exception ex) {
            Logger.getLogger(PanelTambahAnggota.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
